package com.yugao.fintech.draper.scheduled.dto;

import com.yugao.fintech.draper.datasource.entity.PageQuery;
import com.yugao.fintech.draper.quartz.constants.ScheduleConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class QuartzJobQuery extends PageQuery implements Serializable {

	private static final long serialVersionUID = -1L;

	@Schema(description = "任务ID")
	private Long jobId;

	@Schema(description = "任务名称")
	private String jobName;

	@Schema(description = "任务组名")
	private String jobGroup;

	@Schema(description = "执行参数")
	private String parameters;

	@Schema(description = "cron执行表达式")
	private String cronExpression;

	@Schema(description = "cron计划策略")
	private String misfirePolicy = ScheduleConstants.MISFIRE_DEFAULT;

	@Schema(description = "任务状态（0正常 1暂停）")
	private String status;

	@Schema(description = "备注信息")
	private String remark;

	@Schema(description = "创建者")
	private String createBy;

	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	@Schema(description = "更新者")
	private String updateBy;

	@Schema(description = "更新时间")
	private LocalDateTime updateTime;

}
